package com.nbsaas.boot.sql;

import net.sf.jsqlparser.statement.insert.Insert;
import java.lang.reflect.Method;

/**
 * 测试JSqlParser Insert类的可用方法
 */
public class InsertApiTest {
    public static void main(String[] args) {
        Insert insert = new Insert();
        Class<?> clazz = insert.getClass();
        
        System.out.println("Insert类的所有方法:");
        Method[] methods = clazz.getMethods();
        for (Method method : methods) {
            String methodName = method.getName();
            if (methodName.startsWith("set") && 
                (methodName.toLowerCase().contains("value") || 
                 methodName.toLowerCase().contains("item") ||
                 methodName.toLowerCase().contains("expression"))) {
                System.out.println(methodName + " - " + method);
            }
        }
    }
}
